<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Consoles extends Controller 
{
	const MENU_CATEGORY = 'console';
	/*
	*	constructor
	*	@PARA: null
	*	@RETURN: null
	*/
	function __construct()
	{
		parent::Controller();
	}

	/*
	*	index page - defult class action
	*	@PARA: null
	*	@RETURN: null
	*/
	public function index()
	{
		$this->listConsoles();
	}
	
	public function listConsoles()
	{	
		setcookie("menuCategory", self::MENU_CATEGORY);
		$this->load->helper('url');	
		redirect('/games/listGames/'.self::MENU_CATEGORY.'/ALL', 'location');				
	}
}
?>